import service from "@/utils/request"
import SynchronizationLoginNork from '@/utils/SynchronizationLoginWork'
import Synchronization from "@/utils/Synchronization"

export interface BottomStoreInterface{
    outInStock:{
        inStock:inStock[]
        outStock:outStock[]
    }
    soleMessage:{
        total: number,
        stockTotal: number,
        list:list[]
    }
}

export interface inStock{
    DEPT_NAME: string,
    QTY: number
}

export interface outStock{
    DEPT_NAME: string,
    QTY: number
}

export interface list {
    lotNo: string,
    partName: null,
    stockQty: string,
    moldNo: null,
    inShort: null,
    outShort: null,
    style: string,
    color: string,
    orderQty: number
}

export interface TheParametersAreStoredInTheBottomWarehouse {
    color:string,
    inOutEndDate:string,
    inOutStartDate:string,
    lotNo:string,
    moldNo:string,
    pageNum:number,
    pageSize:number,
    partName:string,
    style:string
}

export const TheBottomWarehouseStoresTheQueryData = (parms:TheParametersAreStoredInTheBottomWarehouse) => {
    return Synchronization.post<any,BottomStoreInterface>('/last/getStockMessageInOut',parms)
}